package com.eastfair.messagecenter.api;


import com.eastfair.core.base.R;
import com.eastfair.messagecenter.dto.SmsTemplateDTO;
import com.eastfair.messagecenter.hystrix.SmsTemplateApiFallback;
import com.eastfair.messagecenter.vo.SmsTemplateVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * auth feign接口
 *
 * @Author ligang
 * @Date 2021/7/16 16:41
 */
@FeignClient(name = "messagecenter/msg", fallback = SmsTemplateApiFallback.class)
public interface SmsTemplateServiceFeign {

    /**
     * 查询手机模板
     *
     * @param smsTemplateDTO
     * @return 是否成功
     */
    @ApiOperation(value = "查询手机模板", notes = "查询手机模板")
    @PostMapping("/listVO")
    R<List<SmsTemplateVO>> listVO(@RequestBody SmsTemplateDTO smsTemplateDTO);


}
